package com.xinli.xinlifm.http.bean;

import android.content.Intent;
import android.view.View;

import com.xinli.xinlifm.view.activity.player.PlayerActivity;

import java.util.List;

/**
 * created by javac on 16-10-13.
 * email:kylin_javac@outlook.com
 * desc:
 */

public class CategoryBean {

    /**
     * code : 0
     * data : [{"id":"99389745","title":"一个人是怎样一步步变狭隘的","cover":"http://ossimg.xinli001.com/20161006/44df0de6d2d874ef5b6662f63f02a99a.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389745","speak":"君君","favnum":"128","viewnum":"15281","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389745","url_list":[],"object_id":"99389745","diantai":{"id":"1005","title":"君君","cover":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png","fmnum":"35","user_id":"271342362","viewnum":"3567084","content":"永远年轻，永远热泪盈眶。\r\n新浪微博:   挽不住的发香\n微信公众号: Listenjunjun","favnum":"5730","user":{"id":"271342362","username":"120495757@qq.com","nickname":"listen君君","phone":null,"avatar":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png!80"}}},{"id":"99389744","title":"如何挑选一位心理咨询师","cover":"http://ossimg.xinli001.com/20161006/db4b4e5ff5d414726dc1bd5f90457747.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389744","speak":"高浩容","favnum":"16","viewnum":"2107","background":null,"is_teacher":true,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389744","url_list":[],"object_id":"99389744","diantai":{"id":"1190","title":"高浩容","cover":"http://ossimg.xinli001.com/20160809/98a03226f7aec28169cbd6e46ebb804a.jpg","fmnum":"37","user_id":"1000119284","viewnum":"1197848","content":"【80后/作家/咨询师】 成熟稳重、斯文风趣，抱歉！这不是他。他坐在你面前，脑袋泡在水里，眼皮眨得漫长如冬夜。以哲学细胞和咨商经验，苦熬多年只为识破人生道理。但爱是什么，他和你一样在寻找。 公众号：心灵驯兽师(studiomowen)","favnum":"3065","user":{"id":"1000119284","username":"2042993044@qq.com","nickname":"高浩容","phone":"18022320625","avatar":"http://ossimg.xinli001.com/20160809/98a03226f7aec28169cbd6e46ebb804a.jpg!80"}}},{"id":"99389737","title":"内心强大是一种怎样的体验","cover":"http://ossimg.xinli001.com/20161002/9aaf07e55b62f96f3faf585f11de2396.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389737","speak":"浮兰","favnum":"275","viewnum":"23752","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389737","url_list":[],"object_id":"99389737","diantai":{"id":"972","title":"浮兰","cover":"http://ossimg.xinli001.com/20160830/4385801770877f1d8f35fdbb86b31ac4.jpg","fmnum":"21","user_id":"7486687","viewnum":"2327942","content":"生若夏花，不忘初心。新浪微博：无忧_无忧阁阁主。QQ交流群：541368187 入群敲门砖：心理FM","favnum":"2706","user":{"id":"7486687","username":"895470002@qq.com","nickname":"浮兰","phone":null,"avatar":"http://ossimg.xinli001.com/20160830/4385801770877f1d8f35fdbb86b31ac4.jpg!80"}}},{"id":"99389717","title":"不管，我就是要最好的","cover":"http://ossimg.xinli001.com/20160927/a1f0fe6b3e2d7dad2fa60bdfe8e31072.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389717","speak":"抱抱","favnum":"251","viewnum":"28340","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389717","url_list":[],"object_id":"99389717","diantai":{"id":"1222","title":"抱抱","cover":"http://ossimg.xinli001.com/20160329/9fe4842afb2c58c2200a1b9ae7a68ca9.png","fmnum":"1","user_id":"1004314791","viewnum":"27946","content":"胡噜胡噜毛儿，吓不着~微博关注我：胡噜胡噜毛儿","favnum":"42","user":{"id":"1004314791","username":"15201226737","nickname":"抱抱","phone":"15201226737","avatar":"http://ossimg.xinli001.com/20161009/761a8d881bc975967264274ba91c4ba1.jpg!80"}}},{"id":"99389710","title":"你会怎样和过去告别","cover":"http://ossimg.xinli001.com/20160926/7086a6cdc45693dd65c7e8db0f66d880.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389710","speak":"周小猫","favnum":"307","viewnum":"35983","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389710","url_list":[],"object_id":"99389710","diantai":{"id":"941","title":"周小猫","cover":"http://ossimg.xinli001.com/20161002/e6ac9caaf71caf415b9d7ba5b51f2b0c.jpg","fmnum":"39","user_id":"619353","viewnum":"5078701","content":"很馋\u2026\u2026 \n\n新浪微博：周慢葱\n\nQQ群：368493498","favnum":"4864","user":{"id":"619353","username":"515119066@qq.com","nickname":"周小猫","phone":null,"avatar":"http://ossimg.xinli001.com/20161002/e6ac9caaf71caf415b9d7ba5b51f2b0c.jpg!80"}}},{"id":"99389707","title":"为何努力了，生活依然没有改变","cover":"http://ossimg.xinli001.com/20160925/ec19eec2777a2ca3a940b128e0c35072.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389707","speak":"菜菜的流浪猫","favnum":"337","viewnum":"33706","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389707","url_list":[],"object_id":"99389707","diantai":{"id":"1173","title":"菜菜的流浪猫","cover":"http://ossimg.xinli001.com/20160129/e1bf8f672d1156271b17b081292dab96.jpg","fmnum":"29","user_id":"370518","viewnum":"1349732","content":"执子之手，把子拖走","favnum":"2664","user":{"id":"370518","username":"617943652@qq.com","nickname":"菜菜的流浪猫","phone":"13188594006","avatar":"http://ossimg.xinli001.com/20160222/34509cfdfb03ace52f3f9138413dc024.jpg!80"}}},{"id":"99389706","title":"经典短篇小说|玛莎小姐的面包","cover":"http://ossimg.xinli001.com/20160925/e666f6dcd88d4a3899fd5cdf27e17fe2.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389706","speak":"君君","favnum":"125","viewnum":"29508","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389706","url_list":[],"object_id":"99389706","diantai":{"id":"1005","title":"君君","cover":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png","fmnum":"35","user_id":"271342362","viewnum":"3567084","content":"永远年轻，永远热泪盈眶。\r\n新浪微博:   挽不住的发香\n微信公众号: Listenjunjun","favnum":"5730","user":{"id":"271342362","username":"120495757@qq.com","nickname":"listen君君","phone":null,"avatar":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png!80"}}},{"id":"99389422","title":"你的痛苦源自才华配不上任性","cover":"http://ossimg.xinli001.com/20160926/2666d8ab619f7d60715c3affd4d8c55a.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389422","speak":"周小猫","favnum":"416","viewnum":"40724","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389422","url_list":[],"object_id":"99389422","diantai":{"id":"941","title":"周小猫","cover":"http://ossimg.xinli001.com/20161002/e6ac9caaf71caf415b9d7ba5b51f2b0c.jpg","fmnum":"39","user_id":"619353","viewnum":"5078701","content":"很馋\u2026\u2026 \n\n新浪微博：周慢葱\n\nQQ群：368493498","favnum":"4864","user":{"id":"619353","username":"515119066@qq.com","nickname":"周小猫","phone":null,"avatar":"http://ossimg.xinli001.com/20161002/e6ac9caaf71caf415b9d7ba5b51f2b0c.jpg!80"}}},{"id":"99389704","title":"男友不成熟是什么体验","cover":"http://ossimg.xinli001.com/20160923/7291188b12c8c451a922bbe27d3023cd.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389704","speak":"清风老湿","favnum":"175","viewnum":"18199","background":null,"is_teacher":true,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389704","url_list":[],"object_id":"99389704","diantai":{"id":"1206","title":"清风老湿","cover":"http://ossimg.xinli001.com/20160829/e73915b0f55683ce7afed77c96bcfe10.png","fmnum":"8","user_id":"1004258990","viewnum":"234665","content":"非典型情感咨询师","favnum":"890","user":{"id":"1004258990","username":"xinli_14685877204599","nickname":"清风老湿","phone":"18927503387","avatar":"http://ossimg.xinli001.com/20160829/e73915b0f55683ce7afed77c96bcfe10.png!80"}}},{"id":"99389700","title":"每个人都是两面的","cover":"http://ossimg.xinli001.com/20160922/db482dcafdc366d52bed3d47cab18a24.jpg!200x200","url":"http://yiapi.xinli001.com/fm/media-url/0/99389700","speak":"维斯Wace","favnum":"81","viewnum":"17527","background":null,"is_teacher":false,"absolute_url":"http://yiapi.xinli001.com/fm/fm-share-page/99389700","url_list":[],"object_id":"99389700","diantai":{"id":"1213","title":"维斯Wace","cover":"http://image.xinli001.com/20160908/021929mtpiumkmhactrglf.jpg","fmnum":"5","user_id":"1004289001","viewnum":"151133","content":"声音是座桥 连接你我最真实的内心\n微博 @维斯Wace 欢迎关注收听","favnum":"130","user":{"id":"1004289001","username":"15066272993","nickname":"维斯Wace","phone":"15066272993","avatar":"http://ossimg.xinli001.com/20160908/4dc51a8d9d0885e818a42b4304dd2ff5.jpg!80"}}}]
     */

    private int code;
    /**
     * id : 99389745
     * title : 一个人是怎样一步步变狭隘的
     * cover : http://ossimg.xinli001.com/20161006/44df0de6d2d874ef5b6662f63f02a99a.jpg!200x200
     * url : http://yiapi.xinli001.com/fm/media-url/0/99389745
     * speak : 君君
     * favnum : 128
     * viewnum : 15281
     * background : null
     * is_teacher : false
     * absolute_url : http://yiapi.xinli001.com/fm/fm-share-page/99389745
     * url_list : []
     * object_id : 99389745
     * diantai : {"id":"1005","title":"君君","cover":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png","fmnum":"35","user_id":"271342362","viewnum":"3567084","content":"永远年轻，永远热泪盈眶。\r\n新浪微博:   挽不住的发香\n微信公众号: Listenjunjun","favnum":"5730","user":{"id":"271342362","username":"120495757@qq.com","nickname":"listen君君","phone":null,"avatar":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png!80"}}
     */

    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements View.OnClickListener {
        private String id;
        private String title;
        private String cover;
        private String url;
        private String speak;
        private String favnum;
        private String viewnum;
        private Object background;
        private boolean is_teacher;
        private String absolute_url;
        private String object_id;
        /**
         * id : 1005
         * title : 君君
         * cover : http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png
         * fmnum : 35
         * user_id : 271342362
         * viewnum : 3567084
         * content : 永远年轻，永远热泪盈眶。
         新浪微博:   挽不住的发香
         微信公众号: Listenjunjun
         * favnum : 5730
         * user : {"id":"271342362","username":"120495757@qq.com","nickname":"listen君君","phone":null,"avatar":"http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png!80"}
         */

        private DiantaiBean diantai;
        private List<?> url_list;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getSpeak() {
            return speak;
        }

        public void setSpeak(String speak) {
            this.speak = speak;
        }

        public String getFavnum() {
            return favnum;
        }

        public void setFavnum(String favnum) {
            this.favnum = favnum;
        }

        public String getViewnum() {
            return viewnum;
        }

        public void setViewnum(String viewnum) {
            this.viewnum = viewnum;
        }

        public Object getBackground() {
            return background;
        }

        public void setBackground(Object background) {
            this.background = background;
        }

        public boolean isIs_teacher() {
            return is_teacher;
        }

        public void setIs_teacher(boolean is_teacher) {
            this.is_teacher = is_teacher;
        }

        public String getAbsolute_url() {
            return absolute_url;
        }

        public void setAbsolute_url(String absolute_url) {
            this.absolute_url = absolute_url;
        }

        public String getObject_id() {
            return object_id;
        }

        public void setObject_id(String object_id) {
            this.object_id = object_id;
        }

        public DiantaiBean getDiantai() {
            return diantai;
        }

        public void setDiantai(DiantaiBean diantai) {
            this.diantai = diantai;
        }

        public List<?> getUrl_list() {
            return url_list;
        }

        public void setUrl_list(List<?> url_list) {
            this.url_list = url_list;
        }

        @Override
        public void onClick(View v) {
            Intent intent = new Intent(v.getContext(), PlayerActivity.class);
            intent.putExtra("id", getId());
            v.getContext().startActivity(intent);
        }

        public static class DiantaiBean {
            private String id;
            private String title;
            private String cover;
            private String fmnum;
            private String user_id;
            private String viewnum;
            private String content;
            private String favnum;
            /**
             * id : 271342362
             * username : 120495757@qq.com
             * nickname : listen君君
             * phone : null
             * avatar : http://ossimg.xinli001.com/20160313/9eb7b56e1d2c6e5987c9fc467f859a6d.png!80
             */

            private UserBean user;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public String getFmnum() {
                return fmnum;
            }

            public void setFmnum(String fmnum) {
                this.fmnum = fmnum;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }

            public String getViewnum() {
                return viewnum;
            }

            public void setViewnum(String viewnum) {
                this.viewnum = viewnum;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getFavnum() {
                return favnum;
            }

            public void setFavnum(String favnum) {
                this.favnum = favnum;
            }

            public UserBean getUser() {
                return user;
            }

            public void setUser(UserBean user) {
                this.user = user;
            }

            public static class UserBean {
                private String id;
                private String username;
                private String nickname;
                private Object phone;
                private String avatar;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getUsername() {
                    return username;
                }

                public void setUsername(String username) {
                    this.username = username;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public Object getPhone() {
                    return phone;
                }

                public void setPhone(Object phone) {
                    this.phone = phone;
                }

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }
            }
        }
    }
}
